x86/hypercall: Reduce the size of the hypercall tables
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 26 Jan 2015 15:21:30 +0000 (15:21 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 6 Sep 2016 12:36:10 +0000 (13:36 +0100)
commit5c7716379ee2a9711cc842f39de7d5a94ff6f765
tree62dda0172680421438e1929eb5f70c03c7a922f8
parente30c8a11a9e84c1d19e7b24d54d2f6024cb0cac3
x86/hypercall: Reduce the size of the hypercall tables

The highest populated entry in each hypercall table is currently at index 49.
There is no need to extend both to tables to 64 entries.

Range check eax against the hypercall table array size, and use a
BUILD_BUG_ON() to ensure that the hypercall tables don't grow larger than the
args table.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hypercall.c